import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/index'
import Detail from '@/components/Detail'
import Count from '@/components/Count'

Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '*',
      component: Index
    },
    {
      path: '/',
      name: 'HelloWorld',
      component: Index
    },
    {
      path: '/detail/:id',
      name: 'Detail',
      component: Detail
    },
    {
      path: '/Count',
      name: 'Count',
      component: Count
    }
  ]
})
